package org.glut.cloud.repairManage.feign;

/**
 * @author stubborn
 * @since 2024-08-13 15:30
 */

import org.glut.cloud.repairManage.entity.MaintenanceRecords;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "repair-RepairRecordManage")
public interface MaintenanceRecordService {

    @PostMapping("/maintenance-records/save")
    boolean saveMaintenanceRecord(@RequestBody MaintenanceRecords maintenanceRecord);

    @GetMapping("/maintenance-records/user/{userNo}")
    List<MaintenanceRecords> getMaintenanceRecord(@PathVariable Integer userNo);



}
